package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class PaidGoldSupplier implements Serializable {

	private static final long serialVersionUID = 5507300010923163121L;

	//fields
	private java.lang.Integer id;
	private java.lang.Integer companyId;
	private java.lang.String linkUrl;
	private java.lang.String companyProfileUrl;
	private java.lang.String supplyInfoUrl;
	private java.lang.String companyLogo;
	private java.lang.Integer status;
	private java.lang.String memo;
	private java.sql.Timestamp createTime;

	//default constructor
	public PaidGoldSupplier() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.Integer getCompanyId() {
		return companyId;
	}
	public java.lang.String getLinkUrl() {
		return linkUrl;
	}
	public java.lang.String getCompanyProfileUrl() {
		return companyProfileUrl;
	}
	public java.lang.String getSupplyInfoUrl() {
		return supplyInfoUrl;
	}
	public java.lang.String getCompanyLogo() {
		return companyLogo;
	}
	public java.lang.Integer getStatus() {
		return status;
	}
	public java.lang.String getMemo() {
		return memo;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setCompanyId(java.lang.Integer companyId) {
		this.companyId = companyId;
	}
	public void setLinkUrl(java.lang.String linkUrl) {
		this.linkUrl = linkUrl;
	}
	public void setCompanyProfileUrl(java.lang.String companyProfileUrl) {
		this.companyProfileUrl = companyProfileUrl;
	}
	public void setSupplyInfoUrl(java.lang.String supplyInfoUrl) {
		this.supplyInfoUrl = supplyInfoUrl;
	}
	public void setCompanyLogo(java.lang.String companyLogo) {
		this.companyLogo = companyLogo;
	}
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}
	public void setMemo(java.lang.String memo) {
		this.memo = memo;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof PaidGoldSupplier))
			return false;

		final PaidGoldSupplier paidGoldSupplier = (PaidGoldSupplier)other;
		if (!this.id.equals(paidGoldSupplier.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("PaidGoldSupplier[")
			.append("id=").append(id).append(", ")
			.append("companyId=").append(companyId).append(", ")
			.append("linkUrl=").append(linkUrl).append(", ")
			.append("companyProfileUrl=").append(companyProfileUrl).append(", ")
			.append("supplyInfoUrl=").append(supplyInfoUrl).append(", ")
			.append("companyLogo=").append(companyLogo).append(", ")
			.append("status=").append(status).append(", ")
			.append("memo=").append(memo).append(", ")
			.append("createTime=").append(createTime).append("]").toString();
	}
	
	///########################################
	private String companyName;
	private String keywordStr;
	private boolean sendBooth;

	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getKeywordStr() {
		return keywordStr;
	}
	public void setKeywordStr(String keywordStr) {
		this.keywordStr = keywordStr;
	}
	
	public String getCompanyLogoPath() {
        if (companyLogo == null) {
            return null;
        }
        return com.ibuonline.b2b.common.ResourceUtil.getResPath(companyLogo);
    }
	
	public boolean isSendBooth() {
		return sendBooth;
	}
	public void setSendBooth(boolean sendBooth) {
		this.sendBooth = sendBooth;
	}
	
}